package com.campus.app.service;

import com.campus.app.mapper.Update;
import com.campus.commons.entity.Counsellor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.commons.utils.Result;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.awt.*;
import java.io.InputStream;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 助教团辅导班级表 服务类
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
public interface CounsellorsService extends IService<Counsellor> {
    Result<List<Counsellor>> getAllCounsellor(int current,int size);
    Result<List<Counsellor>> getCounsellors(int current, int size, Date start,Date end,String className);

    /**
     * 添加
     * @param counsellor
     * @return
     */
    Result addCounsellor(@NotNull Counsellor counsellor);

    Result delCounsellor(@Min(1) Integer counsellorId);

    Result upCounsellor(@NotNull Counsellor counsellor);

    Result upCounsellorVerify(@Validated(value = Update.class) Counsellor counsellor);

    Result upLoadCounsellors(InputStream file, String fileName);
}
